public class TestDemo {
        public static void main1(String[] args) {
            for (int i = -100; i < 1600; i++) {
                if (Math.sqrt(i + 100) % 1 == 0 && Math.sqrt(i + 168) % 1 == 0) {
                    System.out.println(i);
                }
            }
        }
        public static void main2(String[] args) {
            Scanner scanner = new Scanner(System.in);
            System.out.println("请输入第一个整数");
            int x = scanner.nextInt();
            System.out.println("请输入第二个整数");
            int y = scanner.nextInt();
            System.out.println("请输入第三个整数");
            int z = scanner.nextInt();
            int min = x;
            if (x > y) {
                min = y;
                if (y > z) {
                    min = z;
                    System.out.println(z + " " + y + " " + x);
                } else {
                    if (x < z) {
                        System.out.println(y + " " + x + " " + z);
                    } else {
                        System.out.println(y + " " + z + " " + x);
                    }
                }
            } else {
                if (x > z) {
                    min = z;
                    System.out.println(z + " " + x + " " + y);
                } else {
                    if (z < y) {
                        System.out.println(x + " " + z + " " + y);
                    } else {
                        System.out.println(x + " " + y + " " + z);
                    }

                }
            }
            f(8, 3, 5);

        }

        public static void f(int x, int y, int z) {

            int arr[] = {x, y, z};
            Arrays.sort(arr);
            System.out.println(arr[0] + " " + arr[1] + " " + arr[2]);
        }

        public static void main3(String[] args) {
            char arr1[] = {'a', 'b', 'c'};
            char arr2[] = {'x', 'y', 'z'};
            for (int i = 0; i < arr1.length; i++) {
                for (int j = 0; j < arr2.length; j++) {
                    if (arr1[i] == 'a' && arr2[j] == 'x') {
                        continue;
                    } else if (arr1[i] == 'c' && (arr2[j] == 'x' || arr2[j] == 'z')) {
                        continue;
                    } else if (arr1[i] == 'a' && arr2[j] == 'y') {
                        continue;
                    } else if (arr1[i] == 'b' && arr2[j] == 'y') {
                        continue;
                    } else if (arr1[i] == 'b' && arr2[j] == 'z') {
                        continue;
                    } else {
                        System.out.println(arr1[i] + " VS " + arr2[j]);
                    }
                }
            }
        }
        public static void main4(String[] args) {
            int res = 1;
            for (int i = 1; i <= 10; i++) {
                res = res * i;
            }
            int factorial10 = res;
            int factorial11 = factorial10 * 11;
            int factorial12 = factorial11 * 12;
            int factorial13 = factorial12 * 13;
            int factorial14 = factorial13 * 14;
            int factorial15 = factorial14 * 15;
            int sum = factorial10 + factorial11 + factorial12 + factorial13 + factorial14 + factorial15;
            System.out.println(sum);
        }

        public static void main(String[] args) {
            Scanner scanner = new Scanner(System.in);
            int n = scanner.nextInt();
            int num = n;
            int a = num % 10;
            num = num / 10;
            int b = num % 10;
            num = num / 10;
            num = num / 10;
            int d = num % 10;
            num = num / 10;
            int e = num % 10;
            if (a == e && b == d) {
                System.out.println(n + "是一个回文数");
            } else {
                System.out.println(n + "不是一个回文数");
            }
            String s = Integer.toString(n);
            char arr[] = s.toCharArray();
            boolean res = true;
            for (int i = 0; i < arr.length; i++) {
                if (arr[i] == arr[arr.length - 1 - i]) {
                    continue;
                } else {
                    res = false;
                }
            }
            if (res) {
                System.out.println(n + "是一个回文数");
            } else {
                System.out.println(n + "不是一个回文数");
            }

        }












}
